<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <h1> {{title}}</h1>
    <div>username: {{username}}</div>
    <div>age: {{age}}</div>
    <div>sex: {{sex===1?'男':'女'}}</div>
    <div>存款： {{ismoney}}</div>
    <div>高富帅： {{isGfs}}</div>
    <div>白富美： {{isBfm === true?'是':'不是'}}</div>
    <div>偶像：{{ gfList.join('/')}}</div>
    <div>{{htmlStr}}</div>
    <div v-html="htmlStr"></div>
    <div v-text="htmlStr"></div>
    <div><button type="button" v-bind:data-id="tid">bind数据</button></div>
    <div><button type="button" :data-id="tid">bind简写</button></div>

  </div>

  <script src="./js/vue.js"></script>
  <script>
    console.log(Vue);
    let vm = new Vue({
      el: "#app",
      data: {
        tid: 123,
        htmlStr: '<b>别这么说，我会害羞的</b>',
        title: 'vue第一课111',
        username: 'wqw',
        age: 18,
        sex: 1,
        ismoney: null,
        isGfs: undefined,
        isBfm: false,
        gfList: ['林青霞', '林志玲', '赵玲']
      },
      methods: {

      },
      computed: {},
      watch: {}
    })

  </script>
</body>

</html>